Electronic device and control method thereof

ABSTRACT

Disclosed are an electronic device and a method for controlling the same. The electronic device includes: a signal detection module configured to acquire an electric signal from an earphone plug; and a controller is configured to acquire the electric signal through the signal detection module, to detect magnitude of the acquired electric signal, to determine whether an earphone is worn by comparing a variation amount in the magnitude of the electric signal with a reference value, and to control an output operation of a sound according to whether the earphone is worn.

CROSS-REFERENCE TO RELATED APPLICATIONS

Pursuant to 35 U.S.C. §119(a), this application claims the benefit ofearlier filing date and right of priority to Korean Patent ApplicationNo. 10-2013-0106701, filed on Sep. 5, 2013, the contents of which areincorporated by reference herein in their entirety.

BACKGROUND

1. Field

The present disclosure relates to an electronic device to detect whetheran earphone is being worn by a user and a method for controlling thesame.

2. Background

In recent years, an electronic device such as a smart phone has providedvarious multi-media services such as data communication, a camera, aDMB, playback of a moving image, a short message service (SMS), andschedule management as well as a voice call function.

Among the above multi-media services, an audio output functionseparately includes a MIDI speaker and plays a bell sound and a movingimage through the MIDI speaker to improve quality of a sound.

Since sound quality in an audio output through a speaker is degraded andthe output audio damages other users, a case of using an ear phone isincreased. In a case of a user often listening to the audio, theearphone is generally inserted into the electronic device.

However, when a telephone is received in a state that the user wears theearphone, since a bell sound is output through the earphone, the usermay immediately recognize reception for the telephone. However, when theuser does not wear the earphone in a state that the earphone is insertedinto the electronic device, because a bell sound output through theearphone is small, the user cannot easily recognize presence ofreception for the telephone.

Accordingly, when the earphone is used in a state that the earphone isinserted into the electronic device, the user needs to recognize whetherto wear the earphone and to output the audio in a method that the usereasily recognizes.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are included to provide a furtherunderstanding of the disclosure and are incorporated in and constitute apart of this application, illustrate embodiment(s) of the disclosure andtogether with the description serve to explain the principle of thedisclosure.

FIG. 1 is a block diagram of an electronic device according to anembodiment.

FIG. 2 is a perspective view illustrating a combination of an electronicdevice and an earphone according to an embodiment.

FIG. 3 is a perspective view illustrating a front surface of theelectronic device according to an embodiment.

FIG. 4 is a diagram illustrating a signal transfer principle from theearphone.

FIG. 5 is a flowchart illustrating a method for controlling anelectronic device according to a first embodiment.

FIGS. 6 and 7 are diagrams illustrating a method for controlling anelectronic device according to a first embodiment.

FIG. 8 is a flowchart illustrating a method for controlling anelectronic device according to a second embodiment.

FIGS. 9 and 10 are diagrams illustrating a method for controlling anelectronic device according to a second embodiment.

FIG. 11 is a flowchart illustrating a method for controlling anelectronic device according to a third embodiment.

FIGS. 12 and 13 are diagrams illustrating a method for controlling anelectronic device according to a third embodiment.

DETAILED DESCRIPTION

The above and other aspects, features and advantages of the presentdisclosure will be more apparent from the following detailed descriptiontaken in conjunction with the accompanying drawings. As the disclosureallows for various changes and numerous embodiments, a particularembodiment will be illustrated in the drawings and described in detailin the written description. Like reference numerals refer to likeelements throughout the specification. In describing the presentdisclosure, detailed descriptions of well-known functions orconfigurations will be omitted in order to not necessarily obscure thesubject matter of the present disclosure. Numerals (e.g., first, second,etc.) used in the description of the present disclosure are only fordistinguishing one element from another element.

An electronic device according to the present disclosure may bedescribed below with reference to the accompanying drawings. In thefollowing description, suffixes “module” and “unit” may be given tocomponents of the electronic device in consideration of onlyfacilitation of description and do not have meanings or functionsdiscriminated from each other.

The electronic device may include a cellular phone, a smart phone, alaptop computer, a digital broadcasting terminal, personal digitalassistants (PDA), a portable multimedia player (PMP), a navigationsystem and/or so on. It should be apparent to those skilled in the artthat a configuration according to an embodiment disclosed in thisspecification should be applicable to fixed or stationary terminals,such as a digital TV or a desktop computer, except for applicationsdisclosed to be specific only to a mobile terminal.

A further description may be provided with regard to an electronicdevice, although such teachings may apply equally to other types ofdevices.

FIG. 1 is a block diagram of an electronic device in accordance with anexample embodiment. Other embodiments and arrangements may also beprovided. FIG. 1 shows an electronic device 100 having variouscomponents, although other components may also be used. More or lesscomponents may alternatively be implemented.

FIG. 1 shows that the electronic device 100 includes a wirelesscommunication unit 110, an audio/video (A/V) input unit 120, a userinput unit 130, a sensing unit 140, an output unit 150, a memory 160, aninterface unit 170, a controller 180 and a power supply 190.

The wireless communication unit 110 may be configured with severalcomponents and/or modules. The wireless communication unit 110 mayinclude a broadcast receiving module 111, a mobile communication module112, a wireless Internet module 113, a short-range communication module114 and a position-location module 115. The wireless communication unit110 may include one or more components that permit wirelesscommunication between the electronic device 100 and a wirelesscommunication system or a network within which the electronic device 100is located. In case of non-mobile devices, the wireless communicationunit 110 may be replaced with a wire communication unit. The wirelesscommunication unit 110 and the wire communication unit may be commonlyreferred to as a communication unit.

The broadcast receiving module 111 may receive a broadcast signal and/orbroadcast associated information from an external broadcast managingentity via a broadcast channel. The broadcast channel may include asatellite channel and a terrestrial channel. The broadcast managingentity may refer to a system that transmits a broadcast signal and/orbroadcast associated information.

At least two broadcast receiving modules 111 may be provided in theelectronic device 100 to pursue simultaneous reception of at least twobroadcast channels or facilitation of broadcast channel switching.

Examples of broadcast associated information may include informationassociated with a broadcast channel, a broadcast program, a broadcastservice provider, etc. For example, broadcast associated information mayinclude an electronic program guide (EPG) of digital multimediabroadcasting (DMB) and an electronic service guide (ESG) of digitalvideo broadcast-handheld (DVB-H).

The broadcast signal may be a TV broadcast signal, a radio broadcastsignal, and/or a data broadcast signal. The broadcast signal may furtherinclude a broadcast signal combined with a TV or radio broadcast signal.

The broadcast receiving module 111 may receive broadcast signalstransmitted from various types of broadcast systems. As a non-limitingexample, the broadcasting systems may include digital multimediabroadcasting-terrestrial (DMB-T), digital multimediabroadcasting-satellite (DMB-S), digital video broadcast-handheld(DVB-H), a data broadcasting system known as media forward link only(MediaFLO®) and integrated services digital broadcast-terrestrial(ISDB-T). The receiving of multicast signals may also be provided. Datareceived by the broadcast receiving module 111 may be stored in thememory 160, for example.

The mobile communication module 112 may communicate wireless signalswith one or more network entities (e.g. a base station or Node-B). Thesignals may represent audio, video, multimedia, control signaling, anddata, etc.

The wireless Internet module 113 may support Internet access for theelectronic device 100. This wireless Internet module 113 may beinternally or externally coupled to the electronic device 100. Suitabletechnologies for wireless Internet may include, but are not limited to,WLAN (Wireless LAN)(Wi-Fi), Wibro (Wireless broadband), Wimax (WorldInteroperability for Microwave Access), and/or HSDPA (High SpeedDownlink Packet Access). The wireless Internet module 113 may bereplaced with a wire Internet module in non-mobile devices. The wirelessInternet module 113 and the wire Internet module may be referred to asan Internet module.

The short-range communication module 114 may facilitate short-rangecommunications. Suitable technologies for short-range communication mayinclude, but are not limited to, radio frequency identification (RFID),infrared data association (IrDA), ultra-wideband (UWB), as well asnetworking technologies such as Bluetooth and ZigBee.

The position-location module 115 may identify or otherwise obtain alocation of the electronic device 100. The position-location module 115may be provided using global positioning system (GPS) components thatcooperate with associated satellites, network components, and/orcombinations thereof.

The position-location module 115 may precisely calculate current3-dimensional position information based on longitude, latitude andaltitude by calculating distance information and precise timeinformation from at least three satellites and then by applyingtriangulation to the calculated information. Location and timeinformation may be calculated using three satellites, and errors of thecalculated location position and time information may then be amended orchanged using another satellite. The position-location module 115 maycalculate speed information by continuously calculating a real-timecurrent location.

The audio/video (A/V) input unit 120 may provide audio or video signalinput to the electronic device 100. The A/V input unit 120 may include acamera 121 and a microphone 122. The camera 121 may receive and processimage frames of still pictures and/or video.

The microphone 122 may receive an external audio signal while theelectronic device is in a particular mode, such as a phone call mode, arecording mode and/or a voice recognition mode. The received audiosignal may then be processed and converted into digital data.

The electronic device 100, and in particular the A/V input unit 120, mayinclude a noise removing algorithm (or noise canceling algorithm) toremove noise generated in the course of receiving the external audiosignal. Data generated by the A/V input unit 120 may be stored in thememory 160, utilized by the output unit 150, and/or transmitted via oneor more modules of the wireless communication unit 110. Two or moremicrophones and/or cameras may also be provided.

The user input unit 130 may generate input data responsive to usermanipulation of an associated input device or devices. Examples of suchdevices may include a keypad, a dome switch, a touchpad (e.g., staticpressure/capacitance), a jog wheel and/or a jog switch. A specificexample is one in which the user input unit 130 is configured as atouchpad in cooperation with a display, as will be described below.

The sensing unit 140 may provide status measurements of various aspectsof the electronic device 100. For example, the sensing unit 140 maydetect an open/close status (or state) of the electronic device 100, arelative positioning of components (e.g., a display and a keypad) of theelectronic device 100, a change of position of the electronic device 100or a component of the electronic device 100, a presence or absence ofuser contact with the electronic device 100, and/or an orientation oracceleration/deceleration of the electronic device 100.

The electronic device 100 may be configured as a slide-type electronicdevice. In such a configuration, the sensing unit 140 may sense whethera sliding portion of the electronic device 100 is open or closed. Thesensing unit 140 may also sense presence or absence of power provided bythe power supply 190, presence or absence of a coupling or otherconnection between the interface unit 170 and an external device, etc.

The sensing unit 140 may include a proximity sensor 141, a motiondetecting sensor 142, a brightness detecting sensor 143, a distancedetecting sensor 144, and/or a heat detecting sensor 145. Details of theproximity sensor 141 and the other sensors 142, 143, 144 and 145 may beexplained below.

The motion detecting sensor 142 may detect a motion state of theelectronic device 100 by an external force such as an external shock, anexternal vibration and/or the like. The motion detecting sensor 142 maydetect a motion extent. The motion detecting sensor 142 may be providedwith a rotational body and detect a motion of the device by detecting aproperty of a mechanical movement of the rotational body. Based onspeed, acceleration and direction of the motion, the motion detectingsensor 142 may detect either the motion extent or a motion pattern andthen output the detected one to the controller 180. The motion detectingsensor 142 may include a gyro sensor.

The brightness detecting sensor 143 may detect a brightness of lightaround the electronic device 100 and then output the detected brightnessto the controller 180.

The distance detecting sensor 144 may include an ultrasonic sensor orthe like. The distance detecting sensor 144 may measure a distancebetween the electronic device 100 and a user and then output thedetected distance to the controller 180.

The heat detecting sensor 145 may be provided around the display 151 ofthe device body. The heat detecting sensor 145 may detect thetemperature on user's contact with the device body and then output thedetected temperature to the controller 180.

The output unit 150 may generate an output relevant to a sight sense, anauditory sense, a tactile sense and/or the like. The output unit 150 mayinclude a display 151, an audio output module 152, an alarm 153, ahaptic module 154 and/or the like.

The display 151 may display (output) information processed by the device100. For example, in case that the device is in a call mode, the display151 may display a user interface (UI) or a graphic user interface (GUI)associated with the call. If the electronic device 100 is in a videocommunication mode or a photograph mode, the display 151 may display aphotographed and/or received picture, a UI or a GUI.

The display 151 may include at least one of a liquid crystal display(LCD), a thin film transistor liquid crystal display (TFT LCD), anorganic light-emitting diode (OLED), a flexible display, and a3-dimensional display.

The display 151 may have a transparent or light-transmittive typeconfiguration to enable an external environment to be seen through. Thismay be called a transparent display. A transparent OLED (TOLED) may bean example of a transparent display. A backside structure of the display151 may also have the light-transmittive type configuration. In thisconfiguration, a user may see an object located behind the device bodythrough the area occupied by the display 151 of the device body.

At least two displays 151 may also be provided. For example, a pluralityof displays may be provided on a single face of the device 100 by beingbuilt in one body or spaced apart from the single face. Alternatively,each of a plurality of displays may be provided on different faces ofthe device 100.

If the display 151 and a sensor for detecting a touch action (hereaftera touch sensor) are constructed in a mutual-layered structure (hereaftera touchscreen), the display 151 may be used as an input device as wellas an output device. For example, the touch sensor may include a touchfilm, a touch sheet, a touchpad and/or the like.

The touch sensor may convert a pressure applied to a specific portion ofthe display 151 or a variation of electrostatic capacity generated froma specific portion of the display 151 to an electric input signal. Thetouch sensor may detect a pressure of a touch as well as a position andsize of the touch.

If a touch input is provided to the touch sensor, signal(s)corresponding to the touch input may be transferred to a touchcontroller. The touch controller may process the signal(s) and thentransfer corresponding data to the controller 180. The controller 180may therefore know which portion of the display 151 is touched.

FIG. 1 shows that the proximity sensor 141 can be provided within theelectronic device 100 enclosed by the touchscreen or around thetouchscreen. The proximity sensor 141 may detect a presence ornon-presence of an object approaching a prescribed detecting surface oran object existing around the proximity sensor 141 using anelectromagnetic field strength or infrared ray without mechanicalcontact. The proximity sensor 141 may have a longer durability than thecontact type sensor and may also have a greater usage than the contacttype sensor.

The proximity sensor 141 may include one of a transmittive photoelectricsensor, a direct reflective photoelectric sensor, a mirror reflectivephotoelectric sensor, a radio frequency oscillation proximity sensor, anelectrostatic capacity proximity sensor, a magnetic proximity sensor, aninfrared proximity sensor and/or the like. If the touchscreen is anelectrostatic type, the proximity sensor 141 may detect proximity of apointer using a variation of an electric field according to theproximity of the pointer. In this case, the touchscreen (touch sensor)may be classified into the proximity sensor.

An action in which a pointer approaches the touchscreen withoutcontacting the touchscreen may be called a proximity touch. An action inwhich a pointer actually touches the touchscreen may be called a contacttouch. The location of the touchscreen proximity-touched by the pointermay be the position of the pointer that vertically opposes thetouchscreen when the pointer performs the proximity touch.

The proximity sensor 141 may detect a proximity touch and/or a proximitytouch pattern (e.g., a proximity touch distance, a proximity touchduration, a proximity touch position, a proximity touch shift state,etc.). Information corresponding to the detected proximity touch actionand/or the detected proximity touch pattern may be outputted to thetouchscreen.

The audio output module 152 may output audio data that is received fromthe wireless communication unit 110 in a call signal reception mode, acall mode, a recording mode, a voice recognition mode, a broadcastreceiving mode and/or the like. The audio output module 152 may outputaudio data stored in the memory 160. The audio output module 152 mayoutput an audio signal relevant to a function (e.g., a call signalreceiving sound, a message receiving sound, etc.) performed by theelectronic device 100. The audio output module 152 may include areceiver, a speaker, a buzzer and/or the like.

The alarm 153 may output a signal for announcing an event occurrence ofthe electronic device 100. An event occurring in the electronic device100 may include one of a call signal reception, a message reception, akey signal input, a touch input and/or the like. The alarm 153 mayoutput a signal for announcing an event occurrence by way of vibrationor the like as well as a video signal or an audio signal. The videosignal may be outputted via the display 151. The audio signal may beoutputted via the audio output module 152. The display 151 or the audiooutput module 152 may be classified as part of the alarm 153.

The haptic module 154 may bring about various haptic effects that can besensed by a user. Vibration is a representative example for the hapticeffect brought about by the haptic module 154. Strength and pattern ofthe vibration generated from the haptic module 154 may be controllable.For example, vibrations differing from each other may be outputted in amanner of being synthesized together or may be sequentially outputted.

The haptic module 154 may generate various haptic effects including avibration, an effect caused by such a stimulus as a pin array verticallymoving against a contact skin surface, a jet power of air via outlet, asuction power of air via inlet, a skim on a skin surface, a contact ofan electrode, an electrostatic power and the like, and/or an effect byhot/cold sense reproduction using an endothermic or exothermic device aswell as the vibration.

The haptic module 154 may provide the haptic effect via direct contact.The haptic module 154 may enable a user to experience the haptic effectvia muscular sense of a finger, an arm and/or the like. Two or morehaptic modules 154 may be provided according to a configuration of theelectronic device 100.

The memory 160 may store a program for operations of the controller 180.The memory 160 may temporarily store input/output data (e.g., phonebook,message, still picture, moving picture, etc.). The memory 160 may storedata of vibration and sound in various patterns outputted in case of atouch input to the touchscreen.

The memory 160 may include at least one of a flash memory, a hard disk,a multimedia card micro type memory, a card type memory (e.g., SDmemory, XD memory, etc.), a random access memory (RAM), a static randomaccess memory (SRAM), a read-only memory (ROM), an electrically erasableprogrammable read-only memory, a programmable read-only memory, amagnetic memory, a magnetic disk, an optical disk, and/or the like. Theelectronic device 100 may operate in association with a web storage thatperforms a storage function of the memory 160 in the Internet.

The interface unit 170 may play a role as a passage to external devicesconnected to the electronic device 100. The interface unit 170 mayreceive data from an external device. The interface unit 170 may besupplied with a power and then the power may be delivered to elementswithin the electronic device 100. The interface unit 170 may enable datato be transferred to an external device from an inside of the electronicdevice 100. The interface unit 170 may include a wire/wireless headsetport, an external charger port, a wire/wireless data port, a memory cardport, a port for coupling to a device having an identity module, anaudio input/output (I/O) port, a video input/output (I/O) port, anearphone port and/or the like.

The identity module may be a chip or card that stores various kinds ofinformation for authenticating use of the electronic device 100. Theidentify module may include a user identity module (UIM), a subscriberidentity module (SIM), a universal subscriber identity module (USIM)and/or the like. A device provided with the above identity module(hereafter an identity device) may be manufactured in the form of asmart card. The identity device may be connected to the electronicdevice 100 via the port.

The interface unit 170 may play a role as a passage for supplying apower to the electronic device 100 from a cradle that is connected tothe electronic device 100. The interface unit 170 may play a role as apassage for delivering various command signals, which are inputted fromthe cradle by a user, to the electronic device 100. Various commandsignals inputted from the cradle or the power may work as a signal forrecognizing that the electronic device 100 is correctly loaded in thecradle.

The controller 180 may control overall operations of the electronicdevice 100. For example, the controller 180 may perform control andprocessing relevant to a voice call, a data communication, a videoconference and/or the like. The controller 180 may have a multimediamodule 181 for multimedia playback. The multimedia module 181 may beimplemented within the controller 180 or may be configured separate fromthe controller 180.

The controller 180 may perform pattern recognizing processing forrecognizing a handwriting input performed on the touchscreen as acharacter and/or recognizing a picture drawing input performed on thetouchscreen as an image.

The power supply 190 may receive an external or internal power and thensupply the power required for operations of the respective elementsunder control of the controller 180.

Embodiments of the present disclosure explained in the followingdescription may be implemented within a recording medium that can beread by a computer or a computer-like device using software, hardware orcombination thereof.

According to the hardware implementation, arrangements and embodimentsmay be implemented using at least one of application specific integratedcircuits (ASICs), digital signal processors (DSPs), digital signalprocessing devices DSPDs), programmable logic devices (PLDs), fieldprogrammable gate arrays (FPGAs), processors, controllers,microcontrollers, microprocessors and electric units for performingother functions. In some cases, embodiments may be implemented by thecontroller 180.

For a software implementation, arrangements and embodiments describedherein may be implemented with separate software modules, such asprocedures and functions, each of which may perform one or more of thefunctions and operations described herein. Software codes may beimplemented with a software application written in any suitableprogramming language and may be stored in memory such as the memory 160,and may be executed by a controller or processor, such as the controller180.

FIG. 2 is a perspective view illustrating a combination of an electronicdevice and an earphone according to an embodiment, FIG. 3 is aperspective view illustrating a front surface of the electronic deviceaccording to an embodiment, and FIG. 4 is a diagram illustrating asignal transfer principle from the earphone.

Referring to FIG. 2, the electronic device 100 may be connected with anearphone plug 210 of an earphone 200 being an external device throughthe interface unit 170. The interface unit 170 may be an earphone jackor socket.

The interface unit 170 of the electronic device is a configuration totransmit and receive a signal to and from the earphone 200 being theexternal device, and may be formed corresponding to a shape of theearphone plug 210 of the earphone.

The earphone 200 may include the earphone plug 210, a connector 220, anoperating unit 230, and earphone output units 240 a and 240 b. Theearphone plug 210 may connect with the electronic device 100 to receiveand transfer an electric signal from and to the electronic device 100.Left/right earphone output units 240 a and 240 b (also earbuds, buds,speaker, etc.) may be electrically isolated from a region correspondingto a microphone (not shown) formed at the earphone. Further, regions ofthe earphone plug 210 corresponding to the left/right earphone outputunits 240 a and 240 b may be electrically isolated from a region of theearphone plug 210 corresponding to a microphone through a ground.

The connector 220 transfers a signal from the earphone plug 210 to theleft/right earphone output units 240 a and 240 b. The operating unit 230may adjust magnitude of an electric signal from the electronic device100, that is, a volume of a sound signal. Further, a microphone may beadditionally attached to the operating unit 230. The operating unit 230may be referred to as a switch, button, or the like.

The left/right earphone output units 240 a and 240 b may be insertedinto ears of the user, and may convert an electric signal to betransferred through the earphone plug 210 into a sound signal totransfer the converted sound signal to the user.

That is, the earphone 200 may transfer an electric signal to theleft/right earphone output units 240 a and 240 b through the interfaceunit 170, and may transfer a sound from the microphone formed at theoperating unit 230 to the electronic device 100 through a microphoneregion of the earphone plug 210.

Since whether to transfer the sound to the earphone 200 through theinterface unit 170 is determined according to a control signal generatedfrom the controller 180 of the electronic device shown in FIG. 1, thecontroller 180 of FIG. 1 may select an output unit of a sound.

Accordingly, when the earphone 200 is connected to the electronic device100, the controller 180 of FIG. 1 does not transfer the sound to theearphone 200 but may output the sound through an external speaker 152 ofthe electronic device 100 in certain situations, for example, when it isdetermined that the earphone 200 is not worn by the user.

Referring to FIG. 3, the electronic device 100 may process the signal inconjunction with a signal detection module 171, a signal output module172, and a controller 180.

When the earphone plug 210 of the earphone is combined through theinterface unit 170 of the electronic device, the controller 180 of theelectronic device are electrically connected to a left earphone outputunit region (L) 211 or a right earphone output unit (R) 212, and amicrophone region (M) 213 and may transmit or receive to or fromrespective regions.

The interface unit 170 of the electronic device 100 may include a signaldetection module 171 and a signal output module 172. The controller 180may control the signal detection module 171 or the signal output module172 according to whether an operation state of the earphone 200 is anoutput mode or an input mode.

In detail, when the earphone 200 is used in the output mode, thecontroller 180 may transfer the electric signal to the left earphoneoutput unit region (L) 211 or the right earphone output unit (R) 212through the signal output module 172. Accordingly, the controller 180may output an audio signal through an earphone output unit.

When the earphone 200 is used in the input mode, the controller 180 maydetect an electric signal from at least one on the left earphone outputunit region (L) 211, the right earphone output unit (R) 212, and themicrophone region (M) 213.

According to the embodiment, a sound signal input from the left or rightearphone output unit as well as a sound signal input from the microphonemay be detected through a signal detection module 171 of the electronicdevice.

The earphone output unit performs a function of outputting a soundsignal by a following principle, but may receive a reflective signalwith respect to the output sound signal. An operation principle of theearphone output unit will be described in detail with reference to FIG.4.

Referring to FIG. 4, the earphone output unit may convert the electricsignal from the electronic device 100 into a sound signal to output theconverted sound signal.

In detail, the earphone output unit may include a magnet a, a coil b,and a diaphragm c, and the coil b may be connected to an earphoneconnector d to receive an electric signal from the earphone connector d.

As the coil b induces a magnetic force according to a received electricsignal, a distance between the magnet a and the coil b is changed sothat a thin film such as the diaphragm c may vibrate due to the distancedifference to form a sound wave in air.

Due to the above principle, the earphone output unit may convert theelectric signal into the sound signal to output the converted soundsignal.

Further, when the reflective signal is received through the diaphragm con the contrary, that is, when vibration of the diaphragm c is received,the earphone output unit may change a distance between the magnet a andthe coil b, and converts the distance difference into an electricsignal.

Accordingly, when the reflective signal corresponding to the soundsignal output through the earphone output unit vibrates the diaphragm c(e.g., when the user wears the earphone), the signal detection module271 may acquire an electric signal from each region 211 or 212 of theearphone plug through the connector d.

The controller 180 may control the signal detection module 171 or thesignal output module 172 to divide an operation mode the earphone 200into an input mode and an output mode. For example, the controller 180may fundamentally set the operation mode of the earphone 200 as anoutput mode, and may set the operation mode of the earphone 200 as aninput mode for a time set at a predetermined time.

Further, the controller 180 may set the operation mode of the earphone200 as an output mode, and may set at the input mode at a predeterminedtime during use of the output mode. The predetermined time may include acase where a preset period comes when the period is set, a case ofswitching a played music during playback of music, and a case ofreceiving a specific event such as upon reception of the telephone andupon reception of a message alarm. The predetermined time may be set toinclude various cases except for the foregoing embodiments.

When acquiring the electric signal through the signal detection module271, the controller 180 may detect magnitude or a frequency of theacquired electric signal, and compare a variation amount in themagnitude or the frequency of the acquired electric signal with areference value to determine whether the earphone is worn. The variationamount in the magnitude or the frequency of the electric signal mayinclude a variation amount in the magnitude or the frequency of theelectric signal in the output mode or a variation amount in themagnitude or the frequency of the electric signal in the input mode. Thereference value may be set by taking magnitude or a frequency and anoise of an audio signal in the output mode. For example, the referencevalue may be set as a sum of maximum magnitude of the audio signal andan offset value respect to the noise in the output mode.

The controller 180 may determine whether a left or right earphone isworn by comparing a variation amount in the magnitude or the frequencyof the electric signal acquired from each region 211 or 212 of theearphone plug with the reference value.

In detail, when the variation amount in the magnitude or the frequencyof the electric signal is equal to or greater than the reference value,the controller 180 determines that the earphone 200 is worn. When thevariation amount in the magnitude or the frequency of the electricsignal is less than the reference value, the controller 180 determinesthat the earphone 200 is not worn.

When it is determined that the earphone is worn, the controller 180outputs the sound through the earphone. When it is determined that theearphone is not worn, the controller 180 outputs the sound through theexternal speaker 152.

The controller 180 acquires an electric signal separated from a leftearphone plug region (L) 211 corresponding to a left earphone or a rightearphone plug region (R) 212 to control to reduce a volume of the soundoutput through one side earphone when one of the left earphone or theright earphone is worn.

Since one of the two worn earphones may be removed from the ear in orderto hear an external sound, there is a need to control so that the usercan clearly hear the external sound by reducing a volume of the soundoutput through the worn earphone.

The controller 180 may set the operation mode of the earphone so thatthe input mode and the output mode are simultaneously operated. Asdescribed above, the controller 180 may set to be operated in the inputmode only at a predetermined time.

Further, when receiving the electric signal acquired from the signaldetection module of the wireless earphone, the controller 180 mayanalyze the received electric signal to determine whether the wirelessearphone is worn.

Hereinafter embodiments of the present disclosure will be described indetail.

FIG. 5 is a flowchart illustrating a method for controlling anelectronic device according to a first embodiment, and FIGS. 6 and 7 arediagrams illustrating a method for controlling an electronic deviceaccording to a first embodiment.

According to the first embodiment, a controller 180 of FIG. 1 mayacquire an electric signal from an earphone plug (S110), detectmagnitude of the acquired electric signal (S120), and compare avariation amount in the magnitude of the electric signal with areference value (S130).

The controller 180 of FIG. 1 may determine whether the earphone is wornbased on a result of analyzing the electric signal (S140). In this case,the controller 180 of FIG. 1 may independently determine with respect toleft/right earphones whether the earphone is worn.

The controller 180 of FIG. 1 may control an output operation of thesound according to whether the earphone is worn. In detail, thecontroller 180 of FIG. 1 may determine whether to output the soundthrough an external speaker or an earphone, and may adjust a volume ofthe sound output through the earphone.

The controller 180 of FIG. 1 may determine to set the operation mode ofthe earphone as an output mode or an input mode. When the operation modeof the earphone is set as the input mode, the controller 180 of FIG. 1may acquire the electric signal from the earphone plug through thesignal detection module.

When the earphone is not worn, as shown in FIG. 6, since a reflectivesignal with respect to a signal output from the earphone is scattered inair, the acquired electric signal may have a wave substantially similarto that of the electric signal in the output mode.

When the earphone is used in the output mode from time point t=0 to acurrent time and is used in the input mode from time point t=t0 to apreset time, the electric signal may be detected through the signaldetection module.

The controller 180 of FIG. 1 detects magnitude of the electric signalacquired from time point t0 to a preset time (t0˜t1), and may calculateand compare a variation amount between magnitude of the detectedelectric signal and magnitude of the electric signal in the output modewith the reference value.

The controller 180 of FIG. 1 may set a sum of a maximum value of theelectric signal and a difference between the maximum value and a minimumvalue of the electric signal. In this case, the reference value may beset as ‘b+(b−a),’ where b is the maximum value and a is the minimumvalue.

Since the variation amount in the magnitude of the electric signal isless than the reference value, the controller 180 of FIG. 1 maydetermine that the earphone is not worn. When the earphone is not worn,the controller 180 of FIG. 1 may control the electronic device toperform a sound control operation according to a preset operation stateof the electronic device.

Conversely, when the earphone is worn, as shown in FIG. 7, since areflective signal with respect to the signal output from the earphone isagain transferred to the earphone through, for example, a blocked earcanal, it may be understood that the acquired electric signal is largerthan a wave of the electric signal in the output mode.

When the earphone is used in the output mode from time point t=0 to acurrent time and is used in the input mode from time point t=t0 to apreset time, the controller 180 of FIG. 1 may detect the electric signalthrough the signal detection module from time point t0 The controller180 of FIG. 1 may detect magnitude of the electric signal acquired fromtime point t0 to a preset time (t0˜t1), and calculate and compare avariation amount between the detected magnitude of the electric signaland magnitude of the electric signal in the output mode with a referencevalue.

The controller 180 of FIG. 1 may set the reference value as a sum of amaximum value of the electric signal in the output mode and a differencebetween the maximum value and a minimum value of the electric value. Inthis case, the reference value may be set as ‘b+(b−a),’ where b is themaximum value and a is the minimum value.

Since the variation amount in the magnitude of the electric signal isequal to or greater than the reference value, the controller 180 of FIG.1 may determine that the earphone is worn. When the earphone is worn,the controller 180 of FIG. 1 may control the electronic device toperform a sound control operation according to a preset operation stateof the electronic device.

FIG. 8 is a flowchart illustrating a method for controlling anelectronic device according to a second embodiment, and FIGS. 9 and 10are diagrams illustrating a method for controlling an electronic deviceaccording to a second embodiment.

According to the second embodiment, the controller 180 of FIG. 1generates at least one of a high frequency signal and an ultrasonicsignal (S210), and may output the generated signal through an earphone(S220). The controller 180 of FIG. 1 may mix with the high frequencysignal or the ultrasonic signal among an audio signal output, or maytemporarily stop the audio signal output but output the high frequencysignal or the ultrasonic signal.

The controller 180 of FIG. 1 may acquire an electric signal from anearphone plug (S230), and may detect a frequency of the electric signal(S240). In this case, the controller 180 of FIG. 1 may output thegenerated signal and then set the operation mode of the earphone as aninput mode, and acquire a reflective signal.

The controller 180 of FIG. 1 may compare with the detected frequency ofthe electric signal with a generated frequency of a signal (S250), andmay determine whether the earphone is worn (S260). When the detectedfrequency of the electric signal is substantially equal to or exceedsthe generated frequency of a signal, the controller 180 of FIG. 1determines that the earphone is worn. When the detected frequency of theelectric signal is less than the generated frequency of a signal, thecontroller 180 of FIG. 1 determines that the earphone is not worn.

The controller 180 of FIG. 1 may the operation mode of the earphone asthe input mode only at predetermined time point. The predetermined timepoint may include cases where specific events occur including a casewhere a preset period comes, when a phone call is received, and when aSMS is received.

Next, the controller 180 of FIG. 1 may control an output operation of asound as a preset operation according to whether the earphone is worn(S270).

In detail, for example, a case where the controller 180 of FIG. 1outputs a high frequency signal or an ultrasonic signal from t1 to t2while using the earphone in the output mode from 0 to a current timepoint, and simultaneously use the earphone in the input mode and theoutput mode from t3 to t4 will be described in the embodiment.

When the earphone is not worn, as shown in FIG. 9, since a reflectivesignal with respect to the signal output from the earphone is scatteredin air, the acquired electric signal may be similar to a wave of theelectric signal in the output mode. Accordingly, the controller 180 ofFIG. 1 may detect a similar frequency in the input mode of the earphone.

The controller 180 of FIG. 1 may compare a frequency of the acquiredelectric signal from t3 to t4 through the signal detection module with afrequency of a high signal or an ultrasonic signal. When the detectedfrequency is less than the frequency of the generated signal, thecontroller 180 of FIG. 1 may determine that the earphone is not worn.

Conversely, when the earphone is worn, as shown in FIG. 10, since areflective signal with respect to the signal output from the earphone isagain transferred to the earphone through, for example, a blocked earcanal, it may be understood that the frequency of the acquired electricsignal is similar to the frequency of the generated frequency.

The controller 180 of FIG. 1 may compare a frequency of an electricsignal acquired from t3 to t4 with a frequency of a generated highfrequency signal or a generated ultrasonic signal. When the detectedfrequency is substantially equal to the frequency of the generatedsignal, the controller 180 of FIG. 1 may determine that the earphone isworn.

In this case, when a difference between the detected frequency and thefrequency of the generated signal is within an error range, thecontroller 180 of FIG. 1 may determine that the earphone is worn.

Further, the controller 180 of FIG. 1 sets a reference value of thefrequency. When the detected frequency is equal to or greater than thereference value, the controller 180 of FIG. 1 may determine that theearphone is worn. When the detected frequency is less than the referencevalue, the controller 180 of FIG. 1 may determine that the earphone isnot worn. In this case, the reference value may include a frequency ofthe generated signal.

FIG. 11 is a flowchart illustrating a method for controlling anelectronic device according to a third embodiment, and FIGS. 12 and 13are diagrams illustrating a method for controlling an electronic deviceaccording to a third embodiment.

According to the third embodiment, the controller 180 of FIG. 1 forms acommunication channel with a wireless earphone (S310). When receiving anelectric signal from the wireless earphone (S320), the controller 180 ofFIG. 1 may extract magnitude or a frequency of the received electricsignal (S330).

The controller 180 of FIG. 1 may compare the detected magnitude orfrequency of the electric signal with a reference value (S340), maydetermine whether the wireless earphone is worn (S350), and may controlan output operation of a sound (S360).

According to the third embodiment, what is different from the first andsecond embodiments is that a signal detection module is a constituentelement of the wireless earphone 200.

Referring to FIGS. 12 and 13, the electronic device 100 may form acommunication channel with a wireless earphone 300. The wirelessearphone 300 includes a body 310, an output unit 320, and a fixing unit330.

The body 310 of the wireless earphone 300 may include a signal detectionmodule 340 and a controller 350. Further, the body 310 of the wirelessearphone 300 may further include a signal generation module to generatea high frequency signal or an ultrasonic signal.

When receiving a control signal regarding an operation mode of thewireless earphone 300 from the controller 180 of the electric deviceshown in FIG. 1, the wireless earphone 300 may output a sound signalthrough the wireless earphone according to the control signal or receivea sound signal through the wireless earphone.

The wireless earphone 300 converts the received sound signal into anelectric signal and transmits the converted electric signal to theelectric device. The controller 180 of the electronic device maydetermine whether the earphone is worn by analyzing the receivedelectric signal, and may control a sound operation.

A method of determining whether the earphone is worn by analyzing thereceived electric signal, and a method of controlling a sound operationhave been described above.

When receiving the high frequency signal or the ultrasonic signaltogether with a control signal associated with an operation mode of thewireless earphone 300 from the controller 180 of the electronic deviceshown in FIG. 1, the wireless earphone 300 may output the high frequencysignal or the ultrasonic signal, and may receive an electric signal of areflective wave.

Furthermore, the wireless earphone 300 may set a function of thecontroller so that the controller changes an operation state of awireless earphone according to a control signal received from theelectronic device to detect a sound signal.

The present disclosure has been made in an effort to solve problems ofknown electronic devices having earphones, and an object of the presentdisclosure is to provide an electronic device to determine whether anearphone is being worn, and to control an operation according topresence of wearing of the earphone.

In order to accomplish the above objects of the present disclosure,there is provided an electronic device including: a signal detectionmodule configured to acquire an electric signal from an earphone plug;and a controller to acquire the electric signal through the signaldetection module, to detect magnitude of the acquired electric signal,to determine whether an earphone is worn by comparing a variation amountin the magnitude of the electric signal with a reference value, and tocontrol an output operation of a sound according to whether the earphoneis worn.

The controller may be configured to determine that the earphone is wornwhen the variation amount in the magnitude of the electric signal isequal to or greater than the reference value, and may be configured todetermine that the earphone is not worn when the variation amount in themagnitude of the electric signal is less than the reference value.

The controller may be configured to control the sound to be outputthrough the earphone when it is determined that the earphone is worn,and may be configured to control the sound to be output through anexternal speaker when it is determined that the earphone is not worn.

The signal detection module may be configured to acquire the electricsignal separated from a region of the earphone plug corresponding to aleft earphone or a region of the earphone plug corresponding to a rightearphone.

The controller may be configured to control to reduce a volume of asound output through a corresponding earphone when one of the leftearphone and the right earphone is worn.

The controller may be configured to acquire the electric signal throughthe signal detection module only when receiving a specific event.

There is provided an electronic device including: a signal detectionmodule configured to acquire an electric signal from an earphone plug;and a controller configured to generate one of a high frequency signaland an ultrasonic signal, to output the generated signal through anearphone, to acquire an electric signal through the signal detectionmodule, to detect a frequency of the acquired electric signal, todetermine whether the earphone is worn by comparing the detectedfrequency of the electric signal with a frequency of the generatedsignal, and to control an output operation of a sound according towhether the earphone is worn.

The controller may be configured to determine that the earphone is wornwhen the detected frequency of the electric signal is equal to thefrequency of the generated signal, and may be configured to determinethat the earphone is not worn when the detected frequency of theelectric signal is less than the frequency of the generated signal.

The controller may be configured to output the generated signal when aspecific event occurs or only during a preset period, and may beconfigured to acquire the electric signal through the signal detectionmodule.

There is provided an electronic device including: a communication unit;and a controller configured to receive an electric signal from awireless earphone through the communication unit, to detect magnitude ora frequency of the electric signal, to determine whether the wirelessearphone is worn by comparing a variation amount in the magnitude of theelectric signal or the frequency of the electric signal with a referencevalue, and to control an output operation of a sound according towhether the wireless earphone is worn.

The controller may be configured to generate at least one of a highfrequency signal or an ultrasonic signal, and be configured to controlto transmit the generated signal to the wireless earphone through thecommunication unit so that the generated signal is output through thewireless earphone.

The controller may be configured to generate and output at least one ofa high frequency signal or an ultrasonic signal from the wirelessearphone, and be configured to acquire and convert a reflective wavewith respect to the output signal into an electric signal, and beconfigured to control the wireless earphone to transmit the electricsignal.

The controller may be configured to transmit a control to requestacquisition of the electric signal to the wireless earphone whenreceiving a specific event.

There is provided a method for controlling an electronic device, themethod including: acquiring an electric signal from an earphone plug;detecting magnitude of the acquired electric signal; determining whetheran earphone is worn by comparing a variation amount in the detectedmagnitude of the electric signal with a reference value; and controllingan output operation of a sound according to whether the earphone isworn.

There is provided a method for controlling an electronic device, themethod including: generating one of a high frequency signal or anultrasonic signal to output the generated signal through an earphone;acquiring an electric signal from the earphone plug of the earphone;detecting a frequency of the acquired electric signal; determiningwhether the earphone is worn by comparing the detected frequency with afrequency of the generated signal; and controlling an output operationof a sound according to whether the earphone is worn.

There is provided a method for controlling an electronic device, themethod including: forming a communication channel with a wirelessearphone; receiving an electric signal from the wireless earphone;detecting magnitude or a frequency of the received electric signal;determining whether the wireless earphone is worn by comparing avariation amount in the detected magnitude of the electric signal or thefrequency of the electric signal; and controlling an output operation ofa sound according to whether the wireless earphone is worn.

The details of other embodiments are contained in the detaileddescription and accompanying drawings.

According to embodiments of the present disclosure, since presence ofwearing the earphone may be determined by detecting an electric signalfrom an earphone plug, the present disclosure is flexibly applicable toan earphone according to the related art without an additionalconfiguration.

Further, according to embodiments of the present disclosure, when aspecific sound signal is output through an earphone as well as when thesound signal is not output, the present disclosure may determine whetherto wear the earphone using a high frequency signal or a ultrasonicsignal.

Moreover, since embodiments of the present disclosure may set todetermine presence of wearing the earphone only when a specific event isgenerated, power consumption can be reduced.

In addition, embodiments of the present disclosure are applicable to awireless earphone as well as a wired earphone by inserting a simplecircuit capable of detecting an electric signal of the wirelessearphone.

According to the embodiments of the present disclosure, it can be easilydetermined whether the earphone is worn without adding a newconfiguration in an earphone according to the related art or byinserting only a simple signal detection circuit.

The above-described method of controlling the electronic device may bewritten as computer programs and may be implemented in digitalmicroprocessors that execute the programs using a computer readablerecording medium. The method of controlling the electronic device may beexecuted through software. The software may include code segments thatperform required tasks. Programs or code segments may also be stored ina processor readable medium or may be transmitted according to acomputer data signal combined with a carrier through a transmissionmedium or communication network.

The computer readable recording medium may be any data storage devicethat can store data that can be thereafter read by a computer system.Examples of the computer readable recording medium may include read-onlymemory (ROM), random-access memory (RAM), CD-ROMs, DVD±ROM, DVD-RAM,magnetic tapes, floppy disks, and optical data storage devices. Thecomputer readable recording medium may also be distributed over networkcoupled computer systems so that the computer readable code is storedand executed in a distribution fashion.

An electronic device may include a first touch screen configured todisplay a first object, a second touch screen configured to display asecond object, and a controller configured to receive a first touchinput applied to the first object and to link the first object to afunction corresponding to the second object when receiving a secondtouch input applied to the second object while the first touch input ismaintained.

A method may be provided of controlling a electronic device thatincludes displaying a first object on the first touch screen, displayinga second object on the second touch screen, receiving a first touchinput applied to the first object, and linking the first object to afunction corresponding to the second object when a second touch inputapplied to the second object is received while the first touch input ismaintained.

Any reference in this specification to “one embodiment,” “anembodiment,” “example embodiment,” etc., means that a particularfeature, structure, or characteristic described in connection with theembodiment is included in at least one embodiment of the invention. Theappearances of such phrases in various places in the specification arenot necessarily all referring to the same embodiment. Further, when aparticular feature, structure, or characteristic is described inconnection with any embodiment, it is submitted that it is within thepurview of one skilled in the art to affect such feature, structure, orcharacteristic in connection with other ones of the embodiments.

Although embodiments have been described with reference to a number ofillustrative embodiments thereof, it should be understood that numerousother modifications and embodiments can be devised by those skilled inthe art that will fall within the spirit and scope of the principles ofthis disclosure. More particularly, various variations and modificationsare possible in the component parts and/or arrangements of the subjectcombination arrangement within the scope of the disclosure, the drawingsand the appended claims. In addition to variations and modifications inthe component parts and/or arrangements, alternative uses will also beapparent to those skilled in the art.

What is claimed is:
 1. An electronic device comprising: a speaker; aninterface to connect to an earphone; a signal detection moduleconfigured to detect an electric signal from the earphone through theinterface; and a controller configured to determine whether the earphoneis worn by a user based on the detected electric signal, wherein theelectric signal is acquired through the signal detection module, amagnitude of the acquired electric signal is determined, whether theearphone is worn by the user is determined based on a difference betweenthe magnitude of the electric signal and a reference value, and thespeaker and the earphone are controlled for outputting sound accordingto whether the earphone is worn by the user, wherein the controller isconfigured to determine whether each of a left earphone and a rightearphone are being worn, and to reduce a volume through the left or theright earphone that is determined to be worn when only one of the leftor the right earphone is being worn.
 2. The electronic device of claim1, wherein the earphone is determined to be worn when the magnitude ofthe electric signal is equal to or greater than the reference value, andthe earphone is determined to be not worn when the magnitude of theelectric signal is less than the reference value.
 3. The electronicdevice of claim 1, wherein the controller is configured to control thesound to be output through the earphone when it is determined that theearphone is worn, and is configured to control the sound to be outputthrough the speaker when it is determined that the earphone is not worn,in a state where the earphone is connected to the interface.
 4. Theelectronic device of claim 3, wherein the sound is a ring tone for anincoming call, and the ring tone for the incoming call is output throughthe speaker while the headphone is connected to the interface when it isdetermined that the earphone is not being worn by the user.
 5. Theelectronic device of claim 1, wherein the interface is a wirelessinterface configured to wirelessly connect to the earphone.
 6. Theelectronic device of claim 1, wherein the interface is an earphone jackconfigured to connect to a plug on the earphone.
 7. The electronicdevice of claim 6, wherein the signal detection module is configured toacquire the electric signal from a first region of the earphone plugcorresponding to the left earphone or a second region of the earphoneplug corresponding to the right earphone.
 8. The electronic device ofclaim 1, wherein the controller is configured to acquire the electricsignal through the signal detection module in order to determine whetherthe earphone is being worn by a user only in response to a prescribedevent.
 9. An electronic device comprising: a signal detection moduleconfigured to acquire an electric signal through an earphone jack; and acontroller configured to generate one of a high frequency signal or anultrasonic signal, to output the generated signal through an earphone,to acquire the electric signal through the signal detection module, todetect a frequency of the acquired electric signal, to determine whetherthe earphone is worn by a user by comparing the detected frequency ofthe electric signal with a frequency of the generated signal, and tocontrol whether sound is output through the earphone according towhether the earphone is worn.
 10. The electronic device of claim 9,wherein the controller is configured to determine that the earphone isworn when the detected frequency of the electric signal is equal to thefrequency of the generated signal, and is configured to determine thatthe earphone is not worn when the detected frequency of the electricsignal is less than the frequency of the generated signal.
 11. Theelectronic device of claim 9, wherein the controller is configured tooutput the generated signal in response to a prescribed event or duringa prescribed period of time, and is configured to acquire the electricsignal through the signal detection module based on the output generatedsignal.
 12. An electronic device comprising: a communication unitconfigured to communicatively connect to a wireless earphone; and acontroller configured to receive an electric signal from the wirelessearphone through the communication unit, to detect a magnitude or afrequency of the electric signal, to determine whether the wirelessearphone is worn by a user by comparing the magnitude of the electricsignal or the frequency of the electric signal with a reference value,and to control output of sound according to whether the wirelessearphone is worn, wherein the controller is configured to generate andoutput at least one of a high frequency signal or an ultrasonic signalfrom the wireless earphone, to acquire and convert a reflective wavewith respect to the output signal into an electric signal, and tocontrol the wireless earphone to transmit the electric signal.
 13. Theelectronic device of claim 12, wherein the controller is configured togenerate at least one of a high frequency signal or an ultrasonicsignal, and controls to transmit the generated signal to the wirelessearphone through the communication unit so that the generated signal isoutput through the wireless earphone.
 14. The electronic device of claim12, wherein the controller is configured to transmit a request to thewireless earphone to acquire the electric signal in response to aprescribed event.
 15. The electronic device of claim 12, wherein, in astate in which the wireless earphone is communicatively connected to thecommunication unit, the controller controls to output sound through aspeaker on the electronic device when it is determined that the wirelessearphone is not being worn by a user.
 16. A method for controlling anelectronic device, comprising: acquiring an electric signal through anearphone jack; detecting a magnitude of the acquired electric signal;determining whether an earphone is worn by a user based on a differencebetween the magnitude of the electric signal and a reference value;controlling an output of sound through a speaker or the earphoneaccording to whether the earphone is worn by the user; determiningwhether each of a left earphone and a right earphone are being worn; andreducing a volume through the left or the right earphone that isdetermined to be worn when only one of the left or the right earphone isbeing worn.
 17. A method for controlling an electronic device,comprising: generating one of a high frequency signal or an ultrasonicsignal; outputting the generated signal through an earphone; acquiringan electric signal from the earphone through the earphone jack;detecting a frequency of the acquired electric signal; determiningwhether the earphone is worn by a user by comparing the detectedfrequency of the electric signal with a frequency of the generatedsignal; and controlling whether sound is output through the earphoneaccording to whether the earphone is worn.
 18. A method for controllingan electronic device, comprising: establishing a communication channelwith a wireless earphone; generating and outputting at least one of ahigh frequency signal or an ultrasonic signal from the wirelessearphone; acquiring and converting a reflective wave with respect to theoutput signal into an electric signal; and controlling the wirelessearphone to transmit an electric signal; determining whether thewireless earphone is worn by a user by comparing the magnitude of theelectric signal or the frequency of the electric signal; and controllingan output of a sound according to whether the wireless earphone is worn.